import * as types from '@/store/mutation-types';

export default {
  [types.SAVE_SHOP_LIST](state, payload) { // 储存商品所有列表
    state.list = payload.list;
  },

  [types.SET_SHOP_NAME](state, payload) { // 储存商店的名字
    state.shopName = payload;
  },

  [types.SET_SHOP_KIND](state, payload) { // 储存商店营销的类别
    state.shopKind = payload;
  },

  [types.SET_LIST_HISTORY](state, payload) { // 储存历史订单的列表
    state.orderList = payload.orderList;
  },
};
